package cn.jiedanba.cacert.ca.vo;

import java.io.Serializable;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "吊销证书")
public class RevokeVo implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 证书序列号
	 */
	@NotBlank(message = "证书序列号不能为空")
	@ApiModelProperty(required = true, value = "证书序列号")
	private String sn;

	/**
	 * 吊销理由 0：未指定 1：密钥协商 2：协调 3：变更 4：取代 5：操作分包 6：证书持有人 8：删除CRL 9：撤销特权 10：妥协
	 */
	@Min(value = 0, message = "吊销理由不能小于0")
	@Max(value = 10, message = "吊销理由不能大于10")
	@ApiModelProperty(required = false, value = "吊销理由")
	private String reason;

}
